﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UnitSoftware.LINQ2SQLExtentions
{
    public class EntityTypeEventSourceCache
    {
        private static readonly object _newEventSourceLock = new object();

        private static Dictionary<Type, EntityTypeEventSource> _eventSources = new Dictionary<Type, object>();

        public static EntityTypeEventSource GetEntityTypeEventSource()
        {
            //lock (_newEventSourceLock)
            //{
            //    if (!_eventSources.ContainsKey(typeof(EntityTypeE)ventSourceCache)
            //        _eventSources.Add(type,new EntityTypeEventSource(DataChangeProcessor.INSTANCE));
            //}

            return _eventSources[type];
        }
    }
}
